package com.jt.service;



import com.jt.feign.ProviderFallbackFactory;
import com.jt.vo.SysResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;


@FeignClient(name="aj-provider",contextId="FileService",fallbackFactory = ProviderFallbackFactory.class,configuration= src.main.java.com.jt.config.FeignConfig.class)
@Component
public interface FileService{

    @PostMapping(value = "/file/addUpload",produces = MediaType.APPLICATION_JSON_UTF8_VALUE,consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    SysResult addUpload(@RequestPart("file") MultipartFile file);
}
